package com.spring.innerAnnotation;

import com.spring.autowire.AutowireService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * @ClassName: SpringAnnotation
 * @Description: TODO
 **/

@Controller    //@Controller注解表示可以不用在核心配置文件application中配置，也可以自动装配近bean容器中
public class SpringAnnotation {

    @Autowired
    AutowireService autowireService;

    public void save(){
        autowireService.save();
    }
}
